home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / shelf_Common.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  3.6 KB  |  145 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. global proc shelf_Common ()
  18. {
  19.  
  20.     if ( `about -evalVersion` ) {
  21.         shelfButton
  22.             -label "Tutorials"
  23.             -command ("showHelp -absolute \"" + "file://" + getenv("MAYA_LOCATION") + "/docs/en_US/html/Welcome.html\"")    
  24.             -image1 "welcomePLELink.xpm"
  25.             welcomeButton;
  26.     }
  27.  
  28.     if (`isTrue "NurbsUIExists"`) {
  29.         shelfButton
  30.             -label "CV Curve Tool"
  31.             -command "CVCurveTool"
  32.             -image1 "curveCV.xpm" 
  33.             -doubleClickCommand "CVCurveToolOptions" 
  34.             ;
  35.  
  36.         shelfButton
  37.             -label "EP Curve Tool"
  38.             -command "EPCurveTool"
  39.             -image1 "curveEP.xpm" 
  40.             -doubleClickCommand "EPCurveToolOptions" 
  41.             ;
  42.  
  43.         shelfButton
  44.             -label "Extrude"
  45.             -image1 "extrude.xpm"
  46.             -style "iconOnly"
  47.             -command "Extrude"
  48.             ;
  49.  
  50.         shelfButton
  51.             -label "Revolve"
  52.             -image1 "revolve.xpm"
  53.             -style "iconOnly"
  54.             -command "Revolve"
  55.             ;
  56.  
  57.         shelfButton
  58.             -label "Loft"
  59.             -image1 "skin.xpm"
  60.             -style "iconOnly"
  61.             -command "Loft"
  62.             ;
  63.             
  64.         if( `isTrue "SurfaceUIExists"` ) {
  65.             shelfButton
  66.                 -label "Stitch Tool"
  67.                 -command "StitchEdgesTool"
  68.                 -image1 "stitchSrf.xpm"
  69.                 -doubleClickCommand "StitchEdgesToolOptions"
  70.                 ;
  71.  
  72.             shelfButton
  73.                 -label "Sphere"
  74.                 -command "CreateNURBSSphere"
  75.                 -image1 "sphere.xpm"
  76.                 ;
  77.                 
  78.             shelfButton
  79.                 -label "Cone"
  80.                 -command "CreateNURBSCone"
  81.                 -image1 "cone.xpm"
  82.                 ;
  83.         }
  84.     }
  85.  
  86.     if (`isTrue "PolygonsExists"`) { 
  87.         shelfButton
  88.             -label "Poly Cube"
  89.             -command "CreatePolygonCube"
  90.             -image1 "polyCube.xpm"
  91.             ;
  92.  
  93.         shelfButton
  94.             -label "Poly Cylinder"
  95.             -command "CreatePolygonCylinder"
  96.             -image1 "polyCylinder.xpm"
  97.             ;
  98.      }
  99.  
  100.     if (`isTrue "KinematicsExists"`) { 
  101.         if (`jointCtx -exists jointContext`) {
  102.             shelfButton
  103.                 -label "IK Joint Tool"
  104.                 -command "JointTool"
  105.                 -image1 "kinJoint.xpm"
  106.                 -doubleClickCommand "JointToolOptions"
  107.                  ;
  108.         }
  109.  
  110.         if (`ikHandleCtx -exists ikHandleContext`) {
  111.             shelfButton
  112.                 -label "IK Handle"
  113.                 -command "IKHandleTool"
  114.                 -image1 "kinHandle.xpm"
  115.                 -doubleClickCommand "IKHandleToolOptions"
  116.                  ;
  117.         }
  118.     }
  119.  
  120.     if (`isTrue "RenderingExists"`)    { 
  121.         shelfButton
  122.             -label "SpotLight"
  123.             -command "CreateSpotLight"
  124.             -image1 "spotlight.xpm"
  125.              ;
  126.  
  127.        shelfButton
  128.             -label "Camera"
  129.             -command "CreateCameraOnly"
  130.             -image1 "view.xpm"
  131.              ;
  132.     }
  133.  
  134.     if (`isTrue "DynamicsExists"`) { 
  135.         if (`contextInfo -exists dynParticleContext`) {
  136.             shelfButton
  137.                 -label "Particle Tool"
  138.                 -command "ParticleTool"
  139.                 -image1 "particle.xpm"
  140.                 -doubleClickCommand "ParticleToolOptions"
  141.                  ;
  142.         }
  143.     }
  144. }
  145.